package com.zhou.base.components.bs.common.enums;

/**
 * @author xianfeng
 * @date 2023/7/25 16:39
 */
public enum ResponseEnum implements BaseEnum<Integer, String> {

    /**
     *
     */
    SUCCESS(0, "操作成功"),
    UNAUTHORIZED(401, "认证失败"),
    FORBIDDEN(403, "没有操作权限"),
    FAIL(500, "操作失败"),
    SERVICE_EXCEPTION(500, "内部异常"),
    CALLBACK_EXCEPTION(601, "调用接口异常"),
    ;

    private Integer code;
    private String msg;

    ResponseEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

}